-- GENERATED SPELL FOR [Angerclaw Mauler] --


function spell0_8958(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_8958', 687, 1)
end

function spell1_8958(pUnit, Event) --@Maul,n/a--
pUnit:FullCastSpellOnTarget(15793,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8958', 590, 1)
end

function Sorts_8958(pUnit, Event)
local choix_sorts_8958 = math.random(0, 1)
if choix_sorts_8958 == 0 then
pUnit:RegisterEvent('spell0_8958', 1, 1)
end
if choix_sorts_8958 == 1 then
pUnit:RegisterEvent('spell1_8958', 1, 1)
end
end

function mob8958_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8958', math.random(1500, 3000), 1)
end

function mob8958_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8958_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8958_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8958, 1, 'mob8958_Action')
RegisterUnitEvent(8958, 2, 'mob8958_Leave')
RegisterUnitEvent(8958, 3, 'mob8958_Kill')
RegisterUnitEvent(8958, 4, 'mob8958_Die')
